<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        margin: 100px auto;
        border: 1px solid #333;
        width: 200px;
      }

      p {
        width: 200px;
        background-color: gold;
        text-align: justify;
      }

      i {
        display: inline-block;
        width: 100%;
      }

      .box1 {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .box2 {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3; /*行数*/
        -webkit-box-orient: vertical;
      }
    </style>
  </head>
  <body>
    <div>
      <p>姓名<i></i></p>
      <p>省市区<i></i></p>
      <p>详细地址<i></i></p>
      <p>name<i></i></p>
      <p>you tel<i></i></p>
    </div>

    <div class="box1">
      Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nihil, cumque!
    </div>

    <div class="box2">
      Lorem ipsum dolor sit, amet consectetur adipisicing elit. Nihil, cumque!
    </div>
  </body>
</html>
